<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
body {
	margin: 0px;
	background: url(style/image/background/index.jpg) no-repeat;
	background-size: 100% 100%;
	background-attachment: fixed;
	text-align:center
	/* background: #DCDDDF
		url(http://cssdeck.com/uploads/media/items/7/7AF2Qzt.png);
	color: #000;
	font: 14px Arial;
	margin: 0 auto;
	padding: 0;
	position: relative; */
}
div{
	margin:0 auto;
	margin-top:100px;
	color:#FFFFFF;
	width:300px;height:150px;
	}
</style>
<title>注册成功!</title>
<script type="text/javascript">
	onload = function() {
		setInterval(go, 1000);
	};
	var x = 3; //利用了全局变量来执行 
	function go() {
		x--;
		if (x > 0) {
			document.getElementById("tiao").innerHTML = x; //每次设置的x的值都不一样了。 
		} else {
			location.href = 'index.html';
		}
	}

</script>
</head>
<body>

	<div >
		<p>
			<strong>恭喜您注册成功！</strong>
		</p>
		<p>
			<span id="tiao">3</span> 秒后自动跳转到登录页
		</p>
		<p>
		<a href="index.html">点此立即登录</a>
		</p>
	</div>
</body>
</html>